package com.kalaqia.im.library.espresso;

import android.support.test.espresso.IdlingResource;
import android.support.test.espresso.idling.CountingIdlingResource;

/**
 * 功能:
 * 项目名称:kalaqia
 * 类描述:
 * 创建人:kalaqia 421407393@qq.com
 * 创建时间:2017/7/28 15:05
 * 修改人:kalaqia  421407393@qq.com
 * 修改时间:2017/7/28 15:05
 * 修改备注:
 */
public class EspressoIdlingResource {
    private static final String RESOURCE = "GLOBAL";

    private static CountingIdlingResource mCountingIdlingResource =
            new CountingIdlingResource(RESOURCE);

    public static void increment() {
        mCountingIdlingResource.increment();
    }

    public static void decrement() {
        mCountingIdlingResource.decrement();
    }

    public static IdlingResource getIdlingResource() {
        return mCountingIdlingResource;
    }
}
